package com.qd.common.panda.domain.entity.stroke;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 预约
 */
@Data
@Accessors(chain = true)
public class ReserveDTO {
    /**
     * 停车场ID
     */
    @NotBlank(message = "停车场ID不能为空")
    @Size(max = 50, message = "停车场ID长度不能超过{max}位")
    private String parkId;
    /**
     * 车牌
     */
    @NotBlank(message = "车牌不能为空")
    @Size(max = 50, message = "车牌长度不能超过{max}位")
    private String plateNumber;
    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 行程ID
     */
    private String sid;

    /**
     * 1强预约（保留车位） 2普通预约
     */
    private Integer strongReservation;

    public void freeData() {
        this.parkId = null;
        this.plateNumber = null;
        this.orderId = null;
        this.sid = null;
        this.strongReservation = null;
    }
}
